#include "Camera.h"

Camera::Camera() {
    cameraModel = "RealSense D435i";
    sensorModel = "D430";
    rgbResolution = "1920x1080";
    rgbFrameRate = 30;
    fov = "87x58";
    depthFrameRate = 90;
}

void Camera::print() const {
    cout << "摄像头型号: " << cameraModel << endl;
    cout << "传感器型号: " << sensorModel << endl;
    cout << "RGB 分辨率: " << rgbResolution << endl;
    cout << "RGB 帧率: " << rgbFrameRate << " FPS" << endl;
    cout << "FOV: " << fov << endl;
    cout << "深度帧率: " << depthFrameRate << " FPS" << endl;
}

void Camera::save(ofstream& outFile) const {
    outFile << cameraModel << endl;
    outFile << sensorModel << endl;
    outFile << rgbResolution << endl;
    outFile << rgbFrameRate << endl;
    outFile << fov << endl;
    outFile << depthFrameRate << endl;
}
